<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		
		<link rel="stylesheet" type="text/css" href="../../../css/base.css" />
		<link id="easyuiTheme"  rel="stylesheet" type="text/css" href="../../../easy-ui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../easy-ui/themes/icon.css">
		<script type="text/javascript" src="../../../easy-ui/jquery.min.js"></script>
		<script type="text/javascript" src="../../../easy-ui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../../js/base.js" ></script>
		<script type="text/javascript" src="../../../js/ajaxfileupload.js" ></script>
	 	<script type="text/javascript" src="../../../js/public.js"></script>
	
		 <style type="text/css">
    body,html,div,ul,li,span,p,input,form,label,a,img,em,dl,dt,dd,textarea,h3,table,th,td,tr{margin:0;padding:0;font-size:12px;font-family:"'微软雅黑 ', '微软雅黑'"!important;list-style:none;font-style:normal;word-break: break-all;word-wrap: break-word;}
	input[type="text"]::-ms-clear{display:none;}
	input[type="radio"],input[type="checkbox"]{cursor:pointer;vertical-align:middle;}
	.fl{float:left;}
	.fr{float:right;}
	.oh{overflow:hidden;}
	.table-gray{background: #f8f8f8;text-align: left;line-height: 20px;}
	.myTable{ padding: 30px; border: 1px solid #c9c9c9;}
	.td-span{padding-left: 15px;}
	.myTable>table{width: 100%; border-top: 1px solid #c9c9c9; border-right: 1px solid #c9c9c9;}
	.myTable>table>tbody>tr{overflow: hidden;}
	.myTable>table>tbody>tr>td{border-left: 1px solid #c9c9c9;border-bottom: 1px solid #c9c9c9;padding:10px;}
	.myTable>table>tbody>tr>td>input{height: 24px;width: 80px;}
	.myTable>table>tbody>tr>td>select{width: 100%;}
	.myTable>table>tbody>tr>td>textarea{width: 100%;}
	.td-sec{margin: 8px 8px;}
	.td-sec>span{padding-right: 8px;}
	.td-sec>span>input{width: 60px;}
	.td-a{display: block;background: #0d73b4;width: 75px;height: 24px;line-height: 24px;text-align: center;border-radius: 5px;-moz-border-radius: 5px;-ms-border-radius: 5px;-webkit-border-radius: 5px;-o-border-radius:5px;color: #fff}
	.td-third>textarea{width: 85%; height: 80px;margin-left: 0px;}
	.table-solo{overflow: hidden;text-align: center;}
	.table-solo>td{border: 1px solid #C9C9C9;padding: 5px;}
	.searchitem{display: inline-block;width: 50px;border: 1px solid #c9c9c9;margin-right: 6px; text-align: center;padding: 6px;    cursor: pointer;}
    .searchitem-on{border: 1px solid #ea0000;}
    .selectuser{display: inline-block;margin-left: 26px;width: 80px;height: 26px;text-align: center; line-height: 26px;background-color: #488fd1;color: #fff;text-decoration: none}
    .contRight{text-align: right;}
    .fileImg{position: relative;width: 150px;height: 150px;display: inline-block;font-size: 34px;text-align: center;line-height: 150px;color: #B3B3B3;border: 1px solid #E0E0E0;background-size: 100% 100%;background-repeat: no-repeat;}
    .fileIpt{position: absolute;top: 0;left: 0;width: 150px!important;height: 150px!important;opacity: 0;}
    .alertWrap{display: none;width: 100%;height: 100%;background: rgba(10,10,10,0.8);position: absolute;z-index: 101;}
    .alertWin{width: 400px;height: 150px;background: #fff;position: absolute;left: 0;top: 300px;right: 0;margin: auto;border-radius: 12px;}
    #alertId{width: 100%;height: auto;margin-top: 30px;text-align: center;font-size: 22px;color: #1e1a1b;}
    .alertBtn{ font-size: 16px;color: #fff;   width: 100px;height: 40px;background: #488fd1; text-align: center;line-height: 40px; margin: 35px auto 0;border-radius: 12px;}
    </style>
	</head>

	<body class="easyui-layout" data-options="fit:true" style="overflow:hidden;">
	<div class="alertWrap">
		<div class="alertWin">
			<p id="alertId">asdfasdfsdf</p>
			<div class="alertBtn" onclick="windowsOff()">关闭</div>
		</div>
	</div>
		<!-- 表单提交-->
		<div data-options="region:'south',border:false," style="height:40px;text-align:center;">
			<table style="width:100%;margin-top:8px;" >
				<tr>
					<td style="align:center;">
						<!-- <a href='javascript:void(-1);' onclick="modifyShopInfo();";  class="easyui-linkbutton" data-options="iconCls:'icon-cancel'">修改</a>-->
						<a href='javascript:void(-1);' onclick="submitTab();";  class="easyui-linkbutton" data-options="iconCls:'icon-cancel'">审核</a> 
						<a href='javascript:void(-1);' onclick="curTabClose();";  class="easyui-linkbutton" data-options="iconCls:'icon-cancel'">关闭</a>
					</td>
				</tr>
			</table>
		</div>
		<div data-options="region:'center',border:true,">
		<!-- the baseForm start  -->
		<form id="baseForm" name="baseForm" method="post" target="hiddenFrame" style="margin:0px;padding:0px;overflow:hidden;">
			<input id="id" name="id" type="hidden" /> 
			<input  name="bankAccountAuthStatus"  id="bankAccountAuthStatus" type="hidden" ></input>
				<div class="myTable">
					<table cellpadding="0" cellspacing="0">
				    <tbody>
				    <tr>
				        <td class="table-gray" colspan="2" style="background-color:green;color:white">店铺信息</td>
				    </tr>
				    <!-- 店铺名称 -->
					<tr>
				        <td class="table-gray">店铺名称：</td>
				        <td >
				          	<input id="name" name="name" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					<tr>
				        <td class="table-gray">店铺简称：</td>
				        <td >
				          	<input id="shortName" name="shortName" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					<tr>
				        <td class="table-gray">英文名称：</td>
				        <td >
				          	<input id="engName" name="engName" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					<tr>
				        <td class="table-gray" colspan="2" style="background-color:green;color:white">企业信息</td>
				    </tr>
					<!-- 企业营业执照 -->
					<tr>
				        <td class="table-gray"> 企业营业执照：</td>
			       		<td>
						<div  style="width:100%;" class="panel-body panel-body-noheader" >
						 	<table border="0" style="width:100%;" >
						 		<tr>
									<td style="width:5px;" id=""></td>
									<td style="align:center;height:85px;" id="businessLicenceImg"></td>
									<td style="width:5px;" style="">&nbsp;</td>
								</tr>
							</table>
						</div>
				        </td>
					</tr> 
					<!-- 营业执照号 -->
					<tr>
				        <td class="table-gray">营业执照号：</td>
				        <td >
				          	<input id="businessNo" name="businessNo" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					<!-- 公司名称 -->
					<tr>
				        <td class="table-gray">公司名称：</td>
				        <td>
				          	<input id="businessName" name="businessName" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					<!-- 公司简称 -->
					<!-- <tr>
				        <td class="table-gray">公司简称(不能超过15个汉字)：</td>
				        <td>
				          	<input id="businessNameShort" name="businessNameShort" style="width: 100%;" class="easyui-validatebox textbox" ></input>
				        </td>
					</tr> -->
					<!-- 企业类型 -->
					<tr>
				        <td class="table-gray">企业类型：</td>
				        <td>
				          	<input id="businessType" name="businessType" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					
					<!-- 结算账户信息 -->
					<!-- 结算账户信息 -->
					<!-- 结算账户信息 -->
					<tr>
				        <td class="table-gray" colspan="2" style="background-color:green;color:white">结算账户信息</td>
				    </tr>
				    <tr>
				        <td class="table-gray">银行名称（不可修改）：</td>
				        <td>
				          	<input id="bankName" name="bankName" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					<tr>
				        <td class="table-gray">支行名称（不可修改）：</td>
				        <td>
				          	<input id="branchBankName" name="branchBankName" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					
					<tr>
				        <td class="table-gray">银行账号（不可修改）：</td>
				        <td>
				          	<input id="businessAccount" name="businessAccount" style="width: 100%;" class="easyui-validatebox textbox" readonly="true"></input>
				        </td>
					</tr>
					
					<tr>
				        <td class="table-gray">开户名称：</td>
				        <td>
				          	<input id="businessAccountName" name="businessAccountName" style="width: 100%;" class="easyui-validatebox textbox" ></input>
				        </td>
					</tr>
					
					<tr>
				        <td class="table-gray">公司简称(不能超过15个汉字)：</td>
				        <td>
				          	<input id="businessNameShort" name="businessNameShort" style="width: 100%;" class="easyui-validatebox textbox" ></input>
				        </td>
					</tr>
				    
					<!--  法人信息 -->
					<!--  法人信息 -->
					<!--  法人信息 -->
					<tr>
				        <td class="table-gray" colspan="2" style="background-color:green;color:white">法人信息</td>
				    </tr>
					<!-- 身份证照片 -->
					<tr>
				        <td class="table-gray"> 身份证照片：</td>
				        <td>
						<div  style="width:100%;" class="panel-body panel-body-noheader" >
						 	<table border="0" style="width:100%;" >
						 		<tr>
									<td style="width:5px;" id=""></td>
									<td style="align:center;height:85px;" id="legalIdImgP"></td>
									<td style="width:5px;" style="">&nbsp;</td>
								</tr>
								<tr>
									<td style="width:5px;" id=""></td>
									<td style="align:center;height:85px;" id="legalIdImgO"></td>
									<td style="width:5px;" style="">&nbsp;</td>
								</tr>
							</table>
						</div>
				        </td>
					</tr> 
					
					<!-- 法人名称 -->
					<tr>
				        <td class="table-gray">法人姓名：</td>
				        <td >
				          	<input id="legalName" name="legalName" style="width: 100%;" class="easyui-validatebox textbox" ></input>
				        </td>
					</tr>
					
					<!-- 法人身份证号 -->
					<tr>
				        <td class="table-gray">法人身份证号：</td>
				        <td >
				          	<input id="legalIdNo" name="legalIdNo" style="width: 100%;" class="easyui-validatebox textbox" ></input>
				        </td>
					</tr>
					
					<!-- 法人手机号 -->
					<tr>
				        <td class="table-gray">法人电话：</td>
				        <td >
				          	<input id="legalMobile" name="legalMobile" style="width: 100%;" class="easyui-validatebox textbox" ></input>
				        </td>
					</tr>
					<!--  审核 -->
					<!--  审核 -->
					<!--  审核 -->
					<tr>
				        <td class="table-gray" colspan="2" style="background-color:red;color:white">审核</td>
				    </tr>
					<tr>
						<td class="table-gray" width="10%">审核结果：</td>
						<td style="width: 40%;" colspan="3" class="data-table-input">
							<select id="statusSelect" onchange="hideOrShowHtml(this)" style="width: 100%;">
								<option selected value="0">请选择</option>
								<option value="N">不通过</option>
								<option value="Y">通过</option>
							</select>
						</td>
					</tr>
					<tr class="hide_reason">
						<td class="table-gray" width="10%">不通过原因：</td>
					 	<td style="width: 40%;" colspan="3" class="data-table-input">
							<textarea  rows=10  style="width:100%;overflow:auto;" class="textbox"  name="statusRemarks" id="statusRemarks" ></textarea>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</form>
	<!-- the dataForm end  -->
	</div>

	<script type="text/javascript">
	function hideOrShowHtml(obj) {
		var typeValue = obj.options[obj.options.selectedIndex].value; //这是取值    
		$('#bankAccountAuthStatus').val(typeValue);
		if (typeValue == 'N') {//不通过
			$('.hide_reason').show()
		} else if (typeValue == 'Y') {//通过
			$('.hide_reason').hide()
		} else {
			alert("请选择正确的店铺类型!");
		}
	}
	
	function windowsOff(){
		$(".alertWrap").hide()
	}
		function initPage(id){
			 parent.showProgressing();
			 document.getElementById('id').value=eval('parent.parent.'+getQueryString('targetFrame')+'.mainFrame_id.selections[0].id');
			 parent.showProgressing();
			 sendRequestAjax('../../../zcshop/initOptShop.do?responseFunction=initUpdate&',initUpdate);
		}
		
		window.onload=function(){
			initPage();
			$(".isfail").unbind("click").bind("click",function(){
				$(this).closest(".td-fourth").siblings("div").show();
			});
			$(".isok").unbind("click").bind("click",function(){
				$(this).closest(".td-fourth").siblings("div").hide();
				$(this).closest(".td-fourth").siblings("div").find("input").val("");
			});
		}
		//ipt[file]图片上传
		 function fileChange(obj,imgId,e){
		 	var $file = $(obj);
		    var fileObj = $file[0];
		    var windowURL = window.URL || window.webkitURL;
		    var dataURL;
		    var $img = $("#"+imgId);
		    var reader = new FileReader();
		    reader.onload = (function (file) {
		        return function (e) {
		          $img.find(".legalIdImgOpt").val(""+this.result.split(",")[1])
		           console.log($img.find(".legalIdImgOpt").val()); 
		        };
		    })(fileObj.files[0]);
		    reader.readAsDataURL(fileObj.files[0]);
		//  console.log(fileObj.files[0])
		    if (!/\/(?:jpg|jpeg|png|gif)/i.test(fileObj.files[0].type)) {
				$(".alertWrap").show();
				$("#alertId").html("请提交正确的图片格式!");
		    	return false;
		    }
		    if(fileObj.files[0].size>(600*1024)){
				$(".alertWrap").show();
				$("#alertId").html("图片大小超过600K!");
		    	return false;
		    }
		    $img.find('span').html("");
		    if (fileObj && fileObj.files && fileObj.files[0]) {
		        dataURL = windowURL.createObjectURL(fileObj.files[0]);
		        $img.css('background-image', "url("+dataURL+")");
		    } else {
		        dataURL = $file.val();
		        var imgObj = document.getElementById(""+imgId);
		        imgObj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
		        imgObj.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").style.backgroundImage ="url("+dataURL+")";

		    }
		    
		 }
		var responseResultPage;
		function initUpdate(responseResult){
			//"01"-身份证；"02"-店铺名称；"03"-店铺编号；"04"-营业时间；"05"-营业电话；"06"-店铺logo；"07"-店铺内景；"08"-营业执照；"09"-授权函；"10"-店铺招牌；
			//"11"-分店名；"12"-银行开户许可证；"13"-店铺英文名；"14"-企业名称,"15"-营业执照号,"16"-兴业返回错误信息,"17"-结算账号信息,"18"-公司简称,"19"-法人姓名,"20"-企业类型
			setFormDefault(responseResult); 
			responseResultPage=responseResult;
			var list = responseResult.listoptlog;
			if(list !=null && list.length>0){
				for (var i = 0; i < list.length; i++) {
					if(list[i].type=='01'){
						if(list[i].result==2){
							$("#legalIdImgOisfail").click();
							$("#legalIdImgOisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}/* else 
					if(list[i].type=='02'){
						if(list[i].result==2){
							$("#snameisfail").click();
							$("#snameisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					} *//* else if(list[i].type=='03'){
						if(list[i].result==2){
							$("#scodeisfail").click();
							$("#scodeisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					} *//* else if(list[i].type=='04'){
						if(list[i].result==2){
							$("#openingTimeRisfail").click();
							$("#openingTimeRisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					} */else if(list[i].type=='05'){
						if(list[i].result==2){
							$("#serviceTelisfail").click();
							$("#serviceTelisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}/* else if(list[i].type=='06'){
						if(list[i].result==2){
							$("#logoImgisfail").click();
							$("#logoImgisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					} *//*else if(list[i].type=='07'){
						if(list[i].result==2){
							$("#sightImgsisfail").click();
							$("#sightImgsisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}  */else if(list[i].type=='08'){
						if(list[i].result==2){
							$("#businessLicenceImgisfail").click();
							$("#businessLicenceImgisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}/* else if(list[i].type=='09'){
						if(list[i].result==2){
							$("#authLetterisfail").click();
							$("#authLetterisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					} *//* else if(list[i].type=='10'){
						if(list[i].result==2){
							$("#signImgisfail").click();
							$("#signImgisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}else if(list[i].type=='11'){
						if(list[i].result==2){
							$("#ssubNameisfail").click();
							$("#ssubNameisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						} */
					/* }else if(list[i].type=='12'){
						if(list[i].result==2){
							$("#ssubNameisfail").click();
							$("#ssubNameisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						} */
					/* }else if(list[i].type=='13'){
						if(list[i].result==2){
							$("#sengNameisfail").click();
							$("#sengNameisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}else if(list[i].type=='14'){
						if(list[i].result==2){
							$("#businessNameisfail").click();
							$("#businessNameisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					} */else if(list[i].type=='15'){
						if(list[i].result==2){
							$("#businessNoisfail").click();
							$("#businessNoisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}else if(list[i].type=='18'){
						if(list[i].result==2){
							$("#businessNameShortisfail").click();
							$("#businessNameShortisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}else if(list[i].type=='19'){
						if(list[i].result==2){
							$("#legalNameisfail").click();
							$("#legalNameisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}
					else if(list[i].type=='21'){
						if(list[i].result==2){
							$("#contactsMobileisfail").click();
							$("#contactsMobileisfail").closest(".td-fourth").siblings("div").find("input").val(list[i].remarks);
						}
					}
				}
			}
			/*  if(!checkStringIsNull(responseResult.entity.legalIdImgO)){
				var htm = "<div class='s_img'><img src='"+responseResult.entity.legalIdImgP+"' style='height:80px;'></img><br><a href='"+responseResult.entity.legalIdImgP+"' target='_blank'>查看大图(正面)</a></div>";
				htm +="<div class='s_img'><img src='"+responseResult.entity.legalIdImgO+"' style='height:80px;'></img><br><a href='"+responseResult.entity.legalIdImgO+"' target='_blank'>查看大图(反面)</a></div>";
				document.getElementById("legalIdImgO").innerHTML=htm;
			}else{
				document.getElementById("legalIdImgO").innerHTML="";
			}  */
			
			if(!checkStringIsNull(responseResult.entity.legalIdImgO)){
				$("#IdOs").css({"background":"url("+responseResult.entity.legalIdImgO+")"});
				var bigImgUrl = responseResult.entity.legalIdImgO.split("?")[0];
				$("#a1").attr("href",bigImgUrl);
				/* $('#a1').attr("href","\""+responseResult.entity.legalIdImgO+"\"");  */
				/* document.getElementById("IdCs").innerHTML = '<a href="'+responseResult.entity.legalIdImgO+'" target="_blank">查看大图</a>'
				+'<input onchange="fileChange(this,'+'"IdCs")"  name="" id="legalIdImgP1"  type="file"  style="width: 31%;" class="easyui-validatebox textbox fileIpt"  >'	        
        		+'<input name="legalIdImgP1" class="legalIdImgOpt"  type="text" hidden="hidden" >'		; */
			}
			if(!checkStringIsNull(responseResult.entity.legalIdImgP)){
				$("#IdCs").css({"background":"url("+responseResult.entity.legalIdImgP+")"});
				var bigImgUrl = responseResult.entity.legalIdImgP.split("?")[0];
				$("#a2").attr("href",bigImgUrl);
				/* var oDiv = $("#IdCs");
			    var oA = document.createElement('a');   //创建a标签
			    oA.href = "\""+responseResult.entity.legalIdImgP+"\"";    //增加a标签的href属性
			    oA.innerHTML = '查看大图';   //给a标签添加内容
			    oDiv.appendChild(oA);  //将a标签添加到div里面 */
				/* $('#a2').attr("href","\""+responseResult.entity.legalIdImgP+"\"");  */
				/* document.getElementById("IdOs").innerHTML = '<a href="'+responseResult.entity.legalIdImgP+'" target="_blank">查看大图</a>'
				+'<input onchange="fileChange(this,'+'"IdOs")"  name=" " id="legalIdImgO1"  type="file" hidden style="width: 31%;" class="easyui-validatebox textbox fileIpt"  >	'		        
        		+'<input name="legalIdImgO1" class="legalIdImgOpt"   type="text" hidden="hidden"  >'; */
			}
			if(!checkStringIsNull(responseResult.entity.businessLicenceImg)){
				$("#LIOs").css({"background":"url("+responseResult.entity.businessLicenceImg+")"});
				var bigImgUrl = responseResult.entity.businessLicenceImg.split("?")[0];
				$("#a3").attr("href",bigImgUrl);
				/* document.getElementById("LIOs").innerHTML = '<a href="'+responseResult.entity.businessLicenceImg+'" target="_blank">查看大图</a>'
				+'<input onchange="fileChange(this,'+'"LIOs")"  name="" id="businessLicenceImg1"  type="file" hidden style="width: 31%;" class="easyui-validatebox textbox fileIpt"  >'	        
        		+'<input name="businessLicenceImg1" class="legalIdImgOpt"   type="text" hidden="hidden"  >'; */
			}
			
			/* 营业执照号 */
			if(!checkStringIsNull(responseResult.entity.businessLicenceImg)){
				document.getElementById("businessLicenceImg").innerHTML="<div class='s_img'><img src='"+responseResult.entity.businessLicenceImg+"' style='height:80px;'></img><br><a href='"+responseResult.entity.businessLicenceImg+"' target='_blank'>查看大图</a></div>";	
			}else{
				document.getElementById("businessLicenceImg").innerHTML="";
			}
			/* 身份证正面 */
			if(!checkStringIsNull(responseResult.entity.businessLicenceImg)){
				document.getElementById("legalIdImgP").innerHTML="<div class='s_img'><img src='"+responseResult.entity.legalIdImgP+"' style='height:80px;'></img><br><a href='"+responseResult.entity.legalIdImgP+"' target='_blank'>查看大图</a></div>";	
			}else{
				document.getElementById("legalIdImgP").innerHTML="";
			}
			/* 身份证反面 */
			if(!checkStringIsNull(responseResult.entity.businessLicenceImg)){
				document.getElementById("legalIdImgO").innerHTML="<div class='s_img'><img src='"+responseResult.entity.legalIdImgO+"' style='height:80px;'></img><br><a href='"+responseResult.entity.legalIdImgO+"' target='_blank'>查看大图</a></div>";	
			}else{
				document.getElementById("legalIdImgO").innerHTML="";
			}
			
			parent.closeProgressing();  
		}
		//form表单 提交 重置 提交后响应处理 ----------------
		function baseFormSubmit(){
			parent.showProgressing();
			sendRequestAjax('../../../zcshop/updateSave.do?responseFunction=updateSave',updateSave)
			
		}
		function  baseFormReset(){
			 initUpdate(responseResultPage);
		}
		function updateSave(responseResult){
		    executeWindowCallback( {});
			
			if(responseResult.slide_msg_key==1){
				parent.parent.showSlideMsg(responseResult.slide_msg_message_key);
			}
			parent.closeProgressing();
			
			/* //关闭当前tab
 			var currentTab =parent.parent.$('#tabs').tabs('getSelected');
            var currtab_title = currentTab.panel('options').title;
            var currtab_id = currentTab.panel('options').id;
            if(currtab_id!='index_welcome_id'){
           		 parent.parent.$('#tabs').tabs('close', currtab_title);
            } */
		}
		
		function curTabClose(){
			//关闭当前tab
 			var currentTab =parent.parent.$('#tabs').tabs('getSelected');
            var currtab_title = currentTab.panel('options').title;
            var currtab_id = currentTab.panel('options').id;
            if(currtab_id!='index_welcome_id'){
           		 parent.parent.$('#tabs').tabs('close', currtab_title);
            }
		}
		
		function submitTab(){
			parent.showProgressing();
			var val = document.getElementById('bankAccountAuthStatus').value;
			var id = document.getElementById('id').value;
			var remarks = document.getElementById('statusRemarks').value;

			if (val != 'N' && val != 'Y') {
				alert('请选择通过或者不通过');
				exit;
			}
			if (val == 'N') {
				if (remarks == null || remarks == undefined || remarks == '') { 
					alert('不通过原因不能为空');
					exit;
				}
			}
			
			var index={};
			index.id = id;
			index.bankAccountAuthStatus = val;
			index.statusRemarks = remarks;
			
			var back = function(jsonData){
	            if ("success" == jsonData.result) {
	            	executeWindowCallback( {});
	            	parent.closeProgressing();
	    			
	    			//关闭当前tab
	     			curTabClose();
	            } else {
	            	parent.$.messager.alert('消息提示',jsonData.resultMsg,'error');
	            	parent.closeProgressing();
	            }
	    	}
	    	var r = Math.random();
	    	Public.ajaxLoadData("../../../zcshop/businessAccountCheck.do?r=" + r, index, back);
		}
		
		function modifyShopInfo(){
			parent.showProgressing();
			
			var shopId = $("#id").val();
			var businessNo = $("#businessNo").val();
			var serviceTel = $("#serviceTel").val();
			var businessNameShort =  $("#businessNameShort").val();
			var legalName =  $("#legalName").val();
			var contactsMobile =  $("#contactsMobile").val();
			
			var index={};
			index.id = shopId;
			index.businessNo = businessNo;
			index.serviceTel = serviceTel;
			index.businessNameShort = businessNameShort;
			index.legalName = legalName;
			index.contactsMobile = contactsMobile;
			index.legalIdImgP = $("input[name='legalIdImgP1']").val();
			index.legalIdImgO = $("input[name='legalIdImgO1']").val();
			index.businessLicenceImg = $("input[name='businessLicenceImg1']").val();
			
			var back1 = function(jsonData){
	            if ("success" == jsonData.result) {
	            	executeWindowCallback( {});
	            	parent.closeProgressing();
	            	parent.$.messager.alert('消息提示','修改成功','success');
	    			//关闭当前tab
	     			//curTabClose();
	            } else {
	            	parent.$.messager.alert('消息提示',jsonData.resultMsg,'error');
	            	parent.closeProgressing();
	            }
	    	}
	    	var r = Math.random();
	    	Public.ajaxLoadData("../../../zcshop/updateShopInfo.do?r=" + r, index, back1);
		}
	</script>
</body>
</html>